// vite.config.js
import path from "path";
import { defineConfig } from "file:///C:/Users/sun/Desktop/online-exam-system/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/sun/Desktop/online-exam-system/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import Components from "file:///C:/Users/sun/Desktop/online-exam-system/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/Users/sun/Desktop/online-exam-system/node_modules/unplugin-vue-components/dist/resolvers.js";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  //路径重写
  resolve: {
    alias: {
      "@": path.resolve("./src")
    }
  },
  css: {
    // css预处理器
    preprocessorOptions: {
      less: {
        charset: false,
        additionalData: '@import "@/assets/less/global.less";'
      }
    }
  },
  server: {
    open: true,
    proxy: {
      "/api": {
        target: "http://localhost:8500",
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/api/, "")
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxzdW5cXFxcRGVza3RvcFxcXFxvbmxpbmUtZXhhbS1zeXN0ZW1cIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkM6XFxcXFVzZXJzXFxcXHN1blxcXFxEZXNrdG9wXFxcXG9ubGluZS1leGFtLXN5c3RlbVxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vQzovVXNlcnMvc3VuL0Rlc2t0b3Avb25saW5lLWV4YW0tc3lzdGVtL3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